<!DOCTYPE html>
<!-- Main.head  start -->
<html >

<head>
    <meta charset="utf-8">
    <!--<meta charset="big5">-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{_('燧人氏餐饮平台')}}</title>
    <link href="{{url_for('static', filename='img/srs_3_favicon.ico')}}" rel="SRS Icon">
    <link href="{{url_for('static', filename='css/bootstrap.min.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='font-awesome/css/font-awesome.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/plugins/sweetalert/sweetalert.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/animate.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/style.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/plugins/iCheck/custom.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/plugins/ladda/ladda-themeless.min.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/plugins/ladda/prism.css')}}" rel="stylesheet">

    <!-- 页首  here -->
    {% block headers %}
    {% endblock %}
    <!--<script>-->
    <!--function scr_change(){-->
        <!--window.location.reload();-->
    <!--}-->
    <!--window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", scr_change, false);-->
    <!--</script>-->
</head>

<!--<body class="fiexed-navigation">-->  <!--  #left默认展开-->
<body class="fiexed-navigation mini-navbar">  <!--  #left默认收缩-->
<div id="wrapper">
    <!-- Main.head  end -->
    <!--Left here-->
    {% include "Left.html"　%}

    <div id="page-wrapper" class="gray-bg">
        <!-- Right_top here-->
        {% include "Right_top.html"　%}


        <!-- 面包屑导航 here-->
        {% include "Crumb_link.html"　%}

        <!-- 主要内容页 contents here-->
        {% block contend %}
        {% endblock %}

        <!-- 页脚 footer here -->
        {% include "footer.html"　%}

    </div>


</div>

<!-- Main.bottom Start-->
<!-- Mainly scripts -->
<script src="{{url_for('static', filename='js/jquery-2.1.1.js')}}"></script>
<script src="{{url_for('static', filename='js/bootstrap.min.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/metisMenu/jquery.metisMenu.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/slimscroll/jquery.slimscroll.min.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/sweetalert/sweetalert.min.js')}}"></script>
<!-- Custom and plugin javascript -->
<script src="{{url_for('static', filename='js/inspinia.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/pace/pace.min.js')}}"></script>
<!--script src="{{url_for('static', filename='layer/2.3/layer.js')}}"></script-->
<script src="{{url_for('static', filename='js/plugins/tinycon/tinycon.min.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/ladda/spin.min.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/ladda/ladda.min.js')}}"></script>
<script type="text/javascript">
    function loading(){//有验证的时候
        if ($(".form-horizontal").valid()) {//验证通过之后就执行
            $("#loading").show();
        }
    }
    Ladda.bind( '.ladda-button', { timeout: 5000 } );
</script>
<!-- 页尾 jscript here -->
<script src="{{url_for('static', filename='js/plugins/iCheck/icheck.min.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/validate/jquery.validate.min.js')}}"></script>
<script src="{{url_for('static', filename='js/plugins/validate/messages_zh.min.js')}}"></script>
{% if session['s']['g'] =='zh' %}
<script src="{{url_for('static', filename='other/common.js')}}"></script>
{% elif session['s']['g'] =='zh_Hant' %}
<script src="{{url_for('static', filename='other/common_tw.js')}}"></script>
{% elif session['s']['g'] =='en' %}
<script src="{{url_for('static', filename='other/common_en.js')}}"></script>
{% else %}
<script src="{{url_for('static', filename='other/common.js')}}"></script>
{% endif %}

{% block footerjs %}
{% endblock %}

<script type="text/javascript">
$(function () {
            $(".logout").click(function () {
                swal({
                            title: '{{_("您确定要退出吗？")}}',
                            type: "warning",
                            showCancelButton: true,
                            animation:"slide-from-top",
                            confirmButtonColor: "#18A689",
                            confirmButtonText: '{{_("确认")}}',
                            cancelButtonText: '{{_("取消")}}',
                            closeOnConfirm: false,
                        },
                        function () {
                             window.location.href='/logout';
                            //swal("确认", "您已经成功退出.", "success");
                        });
            });
        });

</script>
<script type="text/javascript">
    $(document).ready(function(){

        $('#loading-example-btn').click(function () {
            btn = $(this);
            simpleLoad(btn, true);

            // Ajax example
//                $.ajax().always(function () {
//                    simpleLoad($(this), false)
//                });

            simpleLoad(btn, false)
        });
        //$(".footer .pull-right").html(  //显示浏览器状态
        //        "浏览器: "+navigator.appCodeName + "&nbsp;&nbsp;<strong>" + navigator.appVersion+"</strong>&nbsp;&nbsp;Cookie状态: " +
        //        navigator.cookieEnabled
        //)
    });

    function simpleLoad(btn, state) {
        if (state) {
            btn.children().addClass('fa-spin');
            btn.contents().last().replaceWith(" Loading");
        } else {
            setTimeout(function () {
                btn.children().removeClass('fa-spin');
                btn.contents().last().replaceWith(" Refresh");
            }, 2000);
        }
    }

    $(".navbar-default").height($("#wrapper").height());
</script>
</body>

</html>
